<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
    /**
     * @author 谭湘元
     * @since 2009/04/23
     */
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb18030" />
<title>聋校语言学习及矫治系统</title>
<fmt:setBundle basename="PathResource" scope="session" />
<link href="<%=request.getContextPath()%>/<fmt:message key='StylePath' />style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="<fmt:message key='datePicker' />WdatePicker.js"></script>
<script type="text/javascript">
function deleteGameScore(id){
	if(confirm("确定要删除？")){
		document.forms[0].action+="&operatorSign=delete";
		document.forms[0].gameScoreID.value = id;
		document.forms[0].submit();
	}
}
</script>
</head>

<body class="bcolor">
<form id="form1" name="form1" method="post" action="game.do?method=queryGameResults">
	<input type="hidden" name="gameScoreID" />
  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#a7c8e6">
    <tr>
      <td><table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="fontbot">
          <tr>
            <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF"> 
			学生姓名：</td>
            <td width="10%" valign="middle" bgcolor="#FFFFFF">
				<input name="studentName" type="text" class="boxcopy2" value="<c:out value="${param.studentName }"/>" id="textfield10" style="width:150px;" />
            </td>
            <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">
			所在班级：</td>
            <td width="10%" valign="middle" bgcolor="#FFFFFF">
				<select name="classID" style="width:150px;">
					<option value="">全部</option>
					<c:forEach items="${clazz}" var="bjclass">
						<c:set var="currentClassID" value="${bjclass.classId}|0"></c:set>
						<option value="<c:out value="${bjclass.classId}" />|0" <c:if test="${param.classID == currentClassID}">selected</c:if> >
							<c:out value="${bjclass.grades.name }" /><c:out value="${bjclass.classNumber}" />班
						</option>
					</c:forEach>
					<c:forEach items="${specialGroups}" var="dxclass">
						<c:set var="currentClassID" value="${dxclass.onlyClassId}|1"></c:set>
						<option value="<c:out value="${dxclass.onlyClassId}" />|1" <c:if test="${param.classID == currentClassID}">selected</c:if>>
							<c:out value="${dxclass.name }" />
						</option>
					</c:forEach>
				</select>
				 
			</td>
            <td align="left" valign="middle" bgcolor="#FFFFFF" ><a href="javascript:document.forms[0].submit();" onfocus="this.blur()"><img src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />/gif-03.gif" width="53" height="22" border="0" /></a></td>
          </tr>
      </table></td>
    </tr>
  </table>
  <table cellspacing="0" cellpadding="0" width="99%" align="center" border="0">
    <tbody>
      <tr>
        <td width="7"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_01.gif" width="7" /></td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_05.gif"><table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tbody>
              <tr>
                <td width="30"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_02.gif" width="30" /></td>
                <td align="left" width="200"  background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_03.gif">&nbsp;<strong> 游 戏 得 分 查 询</strong></td>
                <td width="59"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_04.gif" width="59" /></td>
                <td>&nbsp;</td>
              </tr>
            </tbody>
        </table></td>
        <td width="8"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_06.gif" width="8" /></td>
      </tr>
      <tr>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_07.gif"><img height="1" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />spacer.gif" width="1" /></td>
        <td bgcolor="#f7fbff"><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" bordercolorlight="#ffffff">
        <tr bgcolor="#CCDDF2">
          <td width="20" valign="middle">&nbsp;</td>
          <td height="20" align="center"><strong>学生姓名</strong></td>
		  <td height="20" align="center"><strong>游戏得分</strong></td>
          <td height="20" align="center"><strong>游戏名称</strong></td>
		  <td height="20" align="center"><strong>教材名称</strong></td>
 		  <td height="20" align="center"><strong>游戏难度</strong></td>
          <td height="20" align="center"><strong>制定日期</strong></td>
		  <td align="center" ><strong>删 除</strong></td>
        </tr>
          <c:forEach items="${pagenitionModel.resultItems}" var="item" varStatus="status">
        <tr>
          <td height="20" align="center" bgcolor="#FFFFFF"><c:out value="${status.count}" />.</td>
          <td height="20" align="center" bgcolor="#FFFFFF"><c:out value="${item.student.sname}" /></td>
		  <td height="20" align="center" bgcolor="#FFFFFF"><c:out value="${item.score}" /></td>
		  <td height="20" align="center" bgcolor="#FFFFFF"><c:out value="${item.game.name}" /></td>
		  <td height="20" align="center" bgcolor="#FFFFFF"><c:out value="${item.book.tbookName}" /></td>
          <td height="20" align="center" bgcolor="#FFFFFF">
			  <c:if test="${item.gameLevel == 0}">简单</c:if>
			  <c:if test="${item.gameLevel == 1}">一般</c:if>
			  <c:if test="${item.gameLevel == 2}">难</c:if>
	      </td>
          <td height="20" align="center" bgcolor="#FFFFFF"><fmt:formatDate pattern="yyyy-MM-dd" value="${item.recordDate}" /></td>
		  <td height="20" align="center" bgcolor="#FFFFFF">
			<c:if test="${item.teacherID==current_user_session_key.teacherId}">
		  		<img onclick="deleteGameScore('<c:out value="${item.id}"/>');" style="cursor:pointer;" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />de.gif" width="16" height="16" border="0" />
			</c:if>
		  </td>
       </tr>
          
        </c:forEach>

      </table>
        <jsp:include page="../../common/pagination.jsp"></jsp:include>
      </td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_09.gif"><img height="1" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />spacer.gif" width="1" /></td>
      </tr>
      <tr>
        <td><img height="22" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_10.gif" width="7" /></td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_11.gif">&nbsp;</td>
        <td><img height="22" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_12.gif" width="8" /></td>
      </tr>
    </tbody>
  </table>
</form>
</body>
</html>
